package com.dgut.coal.dao;

import com.dgut.coal.entity.Supply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SupplyDao {

    //根据名字查找
    public Supply findByName(@Param("supply_name") String supply_name);

    //查看供应商的简要信息
    public List<Supply> findsimplesupply(@Param("supply_id") Integer supply_id, @Param("supply_name") String supply_name);

    //点击查看 供应商详细信息
    public List<Supply> findallsupply();

    //拉黑供应商
    public int putblacklist(@Param("supply_name") String supply_name, @Param("blacklist_msg") String blacklist_msg);

    //修改类别
    public int changecategory(@Param("supply_name") String supply_name, @Param("category") String category);

    //获取供应商类别
    public String getcategory(@Param("supply_name") String supply_name);

    //修改审核状态
    public int changeexamine(@Param("supply_name") String supply_name);

    //驳回信息
    public  int rejectmsg(@Param("supply_name") String supply_name, @Param("reject_msg") String reject_msg);

}
